"""Dingo About box, containing description, credits and license.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
"""

__author__ = 'Sarah Mount'
__credits__ = 'Based on code from U{http://www.zetcode.com/wxpython/dialogs/} (C) vronskij(at)gmail.com'

import wx

class MyAboutBox(wx.Dialog):
    """About box for Dingo."""
    def __init__(self, parent):

        info = wx.AboutDialogInfo()
        info.SetIcon(parent.GetIcon())

        info.SetName('Dingo')
        info.SetVersion('0.4')
        info.SetDescription(description)
        info.SetCopyright('(C) 2008 Sarah Mount')
        info.SetWebSite('http://code.google.com/p/dingo-wsn/')
        info.SetLicence(licence)
        info.AddDeveloper('Sarah Mount')
        info.AddDeveloper('Mohammad Hammoudeh')
        info.AddDeveloper('Daniel Goldsmith')
        info.AddDeveloper('John Kemp')
        info.AddDeveloper('John Perks')

        wx.AboutBox(info)


description = """Dingo is a development tool for wireless sensor networks, in development at the University of Wolverhampton, UK.

 Dingo is a fork of the SenSor project which was developed by Sarah Mount, John Perks, John Kemp and Daniel Goldsmith at the Cogent Computing Applied Research Centre at Coventry University.

 Early work on SenSor was supported by grants from the LTSN-ICS HE Academy Development Fund and the Coventry University Small Grant Fund. Daniel Goldsmith and John Kemp were supported by Nuffield Foundation Undergraduate Research Bursaries. Daniel was also the recipient of an internship from the Cogent Computing Applied Research Centre.
"""

licence = """                wxWindows Library Licence, Version 3.1
                ======================================

  Copyright (c) 1998-2008 Julian Smart, Robert Roebling et al

  Everyone is permitted to copy and distribute verbatim copies
  of this licence document, but changing it is not allowed.

                       WXWINDOWS LIBRARY LICENCE
     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  
  This library is free software; you can redistribute it and/or modify it
  under the terms of the GNU Library General Public Licence as published by
  the Free Software Foundation; either version 2 of the Licence, or (at
  your option) any later version.
  
  This library is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library
  General Public Licence for more details.

  You should have received a copy of the GNU Library General Public Licence
  along with this software, usually in a file named COPYING.LIB.  If not,
  write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  Boston, MA 02111-1307 USA.

  EXCEPTION NOTICE

  1. As a special exception, the copyright holders of this library give
  permission for additional uses of the text contained in this release of
  the library as licenced under the wxWindows Library Licence, applying
  either version 3.1 of the Licence, or (at your option) any later version of
  the Licence as published by the copyright holders of version
  3.1 of the Licence document.

  2. The exception is that you may use, copy, link, modify and distribute
  under your own terms, binary object code versions of works based
  on the Library.

  3. If you copy code from files distributed under the terms of the GNU
  General Public Licence or the GNU Library General Public Licence into a
  copy of this library, as this licence permits, the exception does not
  apply to the code that you add in this way.  To avoid misleading anyone as
  to the status of such modified files, you must delete this exception
  notice from such code and/or adjust the licensing conditions notice
  accordingly.

  4. If you write modifications of your own for this library, it is your
  choice whether to permit this exception to apply to your modifications. 
  If you do not wish that, you must delete the exception notice from such
  code and/or adjust the licensing conditions notice accordingly.
"""

